package com.colter.project.sample.designpattern.proxy.jdkproxy;

import com.colter.project.sample.designpattern.proxy.jdkproxy.jdkproxy.BookFacadeProxy;
import com.colter.project.sample.designpattern.proxy.jdkproxy.jdkproxy.BookFacadeService;

public class TestProxy {
    public static void main(String[] args) {
        BookFacadeProxy proxy = new BookFacadeProxy();
        Object obj = proxy.bind();
        BookFacadeService service = (BookFacadeService)obj;
        service.add();
        service.plus();
        System.out.println(obj instanceof BookFacadeService);
    }

}
